﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DialogBox.ascx.cs" Inherits="com.cngrain.SAFC.Web.res.inc.DialogBox" %>
<link href="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()+"/res/css/common/pop.css"%>"
    rel="stylesheet" type="text/css" />

<script src="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()%>/res/js/common/Dialog.js"
    type="text/javascript"></script>

<asp:HiddenField ID="hdfType" runat="server" />
<asp:HiddenField ID="hdfGuid" runat="server" />
<asp:HiddenField ID="hdfYear" runat="server" />
<asp:HiddenField ID="hdfMonth" runat="server" />
<asp:HiddenField ID="hdfGpCode" runat="server" />
<asp:HiddenField ID="hdfVarietyCode" runat="server" />
<asp:HiddenField ID="hdfUserCode" runat="server" />
<asp:HiddenField ID="hdfPeriods" runat="server" />
<asp:HiddenField ID="hdfStartDate" runat="server" />
<asp:HiddenField ID="hdfEndDate" runat="server" />
<asp:HiddenField ID="hdfOrgCode" runat="server" />
<asp:HiddenField ID="hdfWeekDate" runat="server" />
<div id="jg" style="display: none; position: absolute; z-index: 10001; background-color: #FFF;">
    <div class="jgtitlebg" onmousedown="msgdialog.Drag(this);">
        <div class="fl jgtitle" id="d_title">
            资金结算系统</div>
        <div class="fr jggb">
            <img src="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()%>/res/images/Common/jggb.gif" width="14" height="14" onclick="hideDialog();"
                border="0"></div>
        <div class="clear">
        </div>
    </div>
    <div>
        <div class="fl jgth" id="imgdiv">
        </div>
        <div class="fl">
            <div class="jgtit01" id="d_innerTitle">
                操作失败！</div>
            <div class="jgnr" id="d_innerText">
                维基解密主机落户瑞典军事掩体普京因京因普京因密报批评美国维基解密主
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="fr jgbotton">
        <asp:Button ID="btu_confirm" CssClass="jgbtn" runat="server" Text="确 认" OnClick="btu_confirm_Click" />
        <input class="jgbtn" type="button" name="button" id="btu_close" value="取 消" onclick="hideDialog();" />
    </div>
    <div class="clear">
    </div>
</div>

<script type="text/javascript">
    var msgdialog = new Dialog("jg", null, 30, '200');

    //验证提示弹出 type的值有 成功：success 失败：fail 警告：warning 疑问：question
    function showDialog(type, title, innerTitle, innerText, btn1, btn2) {
        document.getElementById('d_title').innerHTML = title; //标题
        document.getElementById('d_innerTitle').innerHTML = innerTitle; //内部标题
        document.getElementById('d_innerText').innerHTML = innerText; //提示内容
        document.getElementById('d_innerTitle').className = 'jgtit01 ' + type + 'text'; //内部标题样式
        document.getElementById('imgdiv').className = 'fl jgth ' + type; //提示图标
        msgdialog.ShowAndMask();
        document.getElementById('btu_close').focus();
        if (btn1 == null) {
            document.getElementById('<%=btu_confirm.ClientID %>').style.display = 'none';
        }
        else {
            document.getElementById('<%=btu_confirm.ClientID %>').value = btn1;
        }
        if (btn2 == null) {
            document.getElementById('btu_close').style.display = 'none';
        }
        else {
            document.getElementById('btu_close').value = btn2;
        }
    }

    function hideDialog() {
        msgdialog.Hide();
    }
</script>

